﻿using Caliburn.Micro;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace myappcore.ViewModels
{
    /// <summary>
    /// Base Content ViewModel
    /// </summary>
    public class IBaseContentViewModel : Screen
    {
        #region Attribute
        private string _currentColor;
        private bool _isChanged;
        private bool _isShow;
        #endregion

        #region Properties

        /// <summary>
        /// Color of Possition
        /// </summary>
        public string CurrentColor
        {
            get
            {
                return _currentColor;
            }
            set
            {
                if (!string.IsNullOrEmpty(value))
                {
                    _currentColor = value;
                    NotifyOfPropertyChange(() => CurrentColor);
                }
            }
        }

        public bool IsChanged
        {
            get
            {
                return _isChanged;
            }
            set
            {
                if (_isChanged != value)
                {
                    _isChanged = value;
                    NotifyOfPropertyChange(() => IsChanged);
                }
            }
        }

        public bool IsShow
        {
            get
            {
                return _isShow;
            }
            set
            {
                if (_isShow != value)
                {
                    _isShow = value;
                    NotifyOfPropertyChange(() => IsShow);
                }
            }
        }
        #endregion
    }
}
